﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskMessage.DataAccess
{
    public interface IData
    {
        /// <summary>
        /// 获得未发送消息列表
        /// </summary>
        /// <param name="topnum"></param>
        /// <returns></returns>
        List<MessageEntity> messageList(int topnum);

        /// <summary>
        /// 列新消息发送状态
        /// </summary>
        /// <param name="id">id</param>
        /// <param name="status">消息状态 0 未发送 1:发送中 2:发送成功 3:发送失败</param>
        /// <returns></returns>
        bool updateMessageStatus(string id, int status);

    }
}
